<?php

/**
 * Created by PhpStorm.
 * User: yangwenqu
 * Date: 2018/4/20
 * Time: 15:34
 */
class Account
{

    public function __call($name, $arguments)
    {
        print $name . " - " . implode(', ', $arguments) . PHP_EOL;
    }

    public function __callStatic($name, $arguments)
    {
        print $name . " - " . implode(', ', $arguments) . PHP_EOL;
        return $this;
    }

    protected function p($str)
    {
        print $str . PHP_EOL;
    }
}

$account = new Account();
$account->cal("call");
Account::callSta("callSta");
$account->p("Hello World");

